# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=lxqt-themes
pkgver=1.3.0
pkgrel=1
pkgdesc="Themes for LXQt"
url="https://github.com/lxqt/lxqt-themes"
arch="noarch"
license="LGPL-2.0-or-later"
makedepends="cmake samurai lxqt-build-tools perl-dev"
options="!check" # No testsuite
source="https://github.com/lxqt/lxqt-themes/releases/download/$pkgver/lxqt-themes-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		$CMAKE_CROSSOPTS .
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="
b07bd6223b5d39bc728722bfe88698692d283b8fb5af302c0c74f1aca32fc8d53d904fe3ad60e3e0d8d81d33fc1404856e2d6d360a71f3ec3d1f6e602a2941e8  lxqt-themes-1.3.0.tar.xz
"
